package com.lcj.ems.service;

import com.lcj.ems.entity.Emp;
import com.lcj.ems.exception.RequestParameterException;
import com.lcj.ems.exception.ServiceException;

import java.util.List;

public interface EmpService {
    public void addEmp(String name,String salary,String gender,String edu,String[] hobbies) throws RequestParameterException, ServiceException;
    public List<Emp> getAll() throws ServiceException;
    public void modify(String id,String name,String salary,String gender,String edu,String[] hobbies) throws RequestParameterException, ServiceException;
    Emp getEmpById(String id) throws RequestParameterException, ServiceException;
    void removeEmp(String id) throws RequestParameterException, ServiceException;
}
